/**  
 * File Name:IAdministratorService.java  
 * Package Name:com.suneee.cloud.admin.service  
 * Description: (That's the purpose of the file)
 * Date:2016年5月16日下午2:50:41  
 * Copyright (c) 2016, forint.lee@qq.com All Rights Reserved.  
 *  
*/  
  
package com.suneee.sso.admin.service;  

import com.suneee.sso.admin.entity.Administrator;

/**  
 * ClassName:IAdministratorService <br/>  
 * Description:That's the purpose of the class
 * Date:     2016年5月16日 下午2:50:41 <br/>  
 * @author   Forint  
 * @version  V1.0  
 * @see        
 */
public interface IAdminUserLoginService {
	
	/**
	 * 登录(平台端)
	 * @param account
	 * @param password
	 * @param sessionId
	 * @param clientIp
	 * @param appCode
	 * @return
	 */
	public Administrator login(String account,String password,String sessionId, String clientIp, String appCode);
	
	/**
	 * 登录(企业端)
	 * @param enterpriseName
	 * @param account
	 * @param password
	 * @param sessionId
	 * @param clientIp
	 * @param appCode
	 * @return
	 */
	public Administrator loginEn(String enterpriseCode, String account,String password,String sessionId, String clientIp, String appCode);
	
	/**
	 * 注销
	 */
	public void loginOut(String sessionId);
	
	
	/**
	 * 从redis缓存取
	 * @param sessionId
	 * @return
	 */
	public Administrator getAdministrator(String sessionId); 
	
	
	public String test();
}
  
